package org.zoomdev.android.nfccard;


import java.io.Serializable;


/**
 * 表示卡片交易历史记录
 */
public class CardTradeLog implements Serializable {
    private static final long serialVersionUID = -5116026592278369465L;
    public static final int TYPE_ADD = 1;
    public static final int TYPE_SUB = 0;
    private int type;
    private String time;
    private String cash;

    public CardTradeLog() {
    }

    public String getTypeStr() {
        return this.getType() == 1 ? "充值" : "支付";
    }

    public int getType() {
        return this.type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getTime() {
        return this.time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getCash() {
        return this.cash;
    }

    public void setCash(String cash) {
        this.cash = cash;
    }
}
